<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Create User<br/>
${msg}
<form:form method="post" action="${pageContext.request.contextPath}/first/saveUser" commandName="user">
 	
    <table>
    <tr>
        <td><form:label path="username">Username:</form:label></td>
        <td><form:input path="username"  /></td> 
    </tr>
    <tr>
        <td><form:label path="password">Password:</form:label></td>
        <td><form:input path="password"/></td>
    </tr>
    <tr>
    	<td><form:label path="rolesId">Roles:</form:label></td>
        <td>
        	<form:select path="rolesId">
<c:forEach var="r" items="${roles}">        		
        		<form:option alt="${r.description}" label="${r.friendlyName}" value="${r.rolesId}"/>
</c:forEach>
        	</form:select>
        </td> 
    </tr>
    <tr>
        <td><form:label path="penName">Pen Name:</form:label></td>
        <td><form:input path="penName"/></td>
    </tr>
    <tr>
        <td><form:label path="email">Email:</form:label></td>
        <td><form:input path="email"/></td>
    </tr>
    <tr>
        <td><form:label path="email2">Alternate Email:</form:label></td>
        <td><form:input path="email2"/></td>
    </tr>
    <tr>
        <td colspan="2">
            <input type="submit" value="Submit"/>
            <form:hidden path="userId" />
        </td>
    </tr>
    </table>
    
</form:form>